<script setup lang="ts">
interface SpacerProps {
  w?: string | number
  h?: string | number
  class?: string
}

const props = withDefaults(defineProps<SpacerProps>(), {
  w: 0,
  h: 0,
})
</script>

<template>
  <view
    :class="props.class"
    :style="{
      width: `${props.w}rpx`,
      height: `${props.h}rpx`,
    }"
  />
</template>
